//*************************************************************************
//  PP2_8.java   Author: Tang caiming
//
//  Read the length in hours, minutes, and seconds, and then convert 
//  them all into seconds and output the results.
//*************************************************************************

import java.util.Scanner;

public class PP2_8
{
   public static void main(String[] args)
   {
      int hour,minutes,second,time;
    
      Scanner scan = new Scanner(System.in);

      System.out.println("please input hour:");
      hour = scan.nextInt();

      System.out.println("please input minute:");
      minutes = scan.nextInt();

      System.out.println("please input second:");
      second = scan.nextInt();

      minutes = 60 * hour + minutes;

      second = 60 * minutes + second;

      second = second;

      time = second;

      System.out.println("time:" + time);
   }
}
